from django.contrib.auth.models import AbstractUser
from django.db import models

class User(AbstractUser):
    uid = models.AutoField(primary_key=True)
    username = models.CharField(unique=True, max_length=30, blank=True, null=True)
    password = models.CharField(max_length=40, blank=True, null=True)
    regtime = models.DateTimeField(blank=True, null=True)
    sex = models.IntegerField(blank=True, null=True)

    class Meta:
        # managed = False
        db_table = 'user'
